﻿@using OPM
@using OPM.Models
@{
    var menus = UserManager.GetMenu();
}

<ul class="nav" id="side-menu">
    @foreach (var menu in menus)
    {
        <li>
            <a href="@menu.MenuPath" title="@menu.MenuDescription">
                <i class="fa @menu.MenuIconCssClass fa-fw"></i> 
                @menu.MenuName
                @if (Request.RawUrl.ToLower().Replace("\\", "/").Contains(menu.MenuPath.Replace("\\", "/").ToLower()))
                {
                    <span class="fa arrow"></span>
                }
            </a>
        </li>
    }  
</ul>